package cn.edu.xmu.orderpayment.order.model.retvo;

import cn.edu.xmu.orderpayment.order.microservice.retvo.ShopRetVo;
import cn.edu.xmu.orderpayment.order.microservice.retvo.SimpleCustomerRetVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.List;

/**
 * @author ziyi guo
 * @date 2021/12/10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderInfoRetVo {

    private Long id;
    private String orderSn;
    private SimpleCustomerRetVo customer;
    private ShopRetVo shop;
    private Long pid;
    private Integer state;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime confirmTime;
    private Long originPrice;
    private Long discountPrice;
    private Long expressFee;
    private Long point;
    private String message;
    private Long regionId;
    private String address;
    private String mobile;
    private String consignee;
    private Long grouponId;
    private Long advancesaleId;
    private String shipmentSn;

    private List<SimpleOrderItemRetVo> orderItem;

}
